//
//  Chufang_CardView.m
//  TY-C
//
//  Created by xyyl on 2024/5/17.
//

#import "Chufang_CardView.h"
/// 宽50+1+60 高22

@implementation Chufang_CardView

- (instancetype)initWithFrame:(CGRect)frame {
    if(self == [super initWithFrame:frame]) {
        [self initViews];
        [self initFrames];
    }
    return self;
}

- (void)initFrames {

    _nameLab.frame = CGRectMake(0, 0, 50*IPADSCALE, 22*IPADSCALE);
    _nameLab.textAlignment = NSTextAlignmentCenter;
    _nameLab.font = ZYQFONT(18);
    _nameLab.backgroundColor = RGBColor(241, 249, 253);
    _nameLab.textColor = RGBColor(13, 157, 219);
    _nameLab.text = @"治疗时间";
    
    _mesLab.frame = CGRectMake(CGRectGetMaxX(_nameLab.frame)+1*IPADSCALE, 0, 35*IPADSCALE, 22*IPADSCALE);
    _mesLab.textAlignment = NSTextAlignmentRight;
    _mesLab.font = ZYQFONT(24);
    _mesLab.backgroundColor = RGBColor(250, 250, 250);
    _mesLab.textColor = RGBColor(51, 51, 51);
    _mesLab.text = @"55";
    
    _dwLab.frame = CGRectMake(CGRectGetMaxX(_mesLab.frame), 0, 25*IPADSCALE, 22*IPADSCALE);
    _dwLab.textAlignment = NSTextAlignmentLeft;
    _dwLab.font = ZYQFONT(14);
    _dwLab.backgroundColor = RGBColor(250, 250, 250);
    _dwLab.textColor = RGBColor(146, 157, 165);
    _dwLab.text = @" s";
    
    
}

- (void)initViews {
    _nameLab = [UILabel new];
    _mesLab = [UILabel new];
    _dwLab = [UILabel new];
    [self addSubview:_nameLab];
    [self addSubview:_mesLab];
    [self addSubview:_dwLab];

}

@end
